package com.chen.authority.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.chen.authority.common.model.PageQo;
import com.chen.authority.common.response.Response;
import com.chen.authority.model.dto.PostDto;
import com.chen.authority.model.po.PostPo;
import com.baomidou.mybatisplus.extension.service.IService;
import com.chen.authority.model.qo.PostQo;
import com.chen.authority.model.vo.PostVo;

import java.util.List;

/**
 * 岗位信息Service接口
 *
 * @author chengy
 * @date 2022-08-19
 */
public interface PostService extends IService<PostPo> {

    Response addOrUpdatePost(Integer id, PostDto dto);

    Response deletePostByIds(Integer[] ids);

    Page<PostVo> pageQueryPostList(PageQo pageQo, PostQo postQo);

    List<PostVo> exportPostList(QueryWrapper<PostPo> queryWrapper);

}
